using System;
using System.Xml.Serialization;

namespace Top.Api.Domain
{
    /// <summary>
    /// BaseProduct Data Structure.
    /// </summary>
    [Serializable]
    public class BaseProduct : TopObject
    {
        /// <summary>
        /// 航空公司二字码，必须大写
        /// </summary>
        [XmlElement("airline")]
        public string Airline { get; set; }

        /// <summary>
        /// 到达机场三字码，必须大写
        /// </summary>
        [XmlElement("arr_airport")]
        public string ArrAirport { get; set; }

        /// <summary>
        /// 是否支持自动HK
        /// </summary>
        [XmlElement("auto_hk")]
        public bool AutoHk { get; set; }

        /// <summary>
        /// 出发机场三字码，必须大写
        /// </summary>
        [XmlElement("dep_airport")]
        public string DepAirport { get; set; }

        /// <summary>
        /// 去程开始日期，格式为2011-3-3
        /// </summary>
        [XmlElement("dep_begin_date")]
        public string DepBeginDate { get; set; }

        /// <summary>
        /// 回程截止日期
        /// </summary>
        [XmlElement("dep_end_date")]
        public string DepEndDate { get; set; }

        /// <summary>
        /// 去程航班号（不填默认全航段）
        /// </summary>
        [XmlElement("dep_flight_no")]
        public string DepFlightNo { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [XmlElement("memo")]
        public string Memo { get; set; }

        /// <summary>
        /// 外部产品id
        /// </summary>
        [XmlElement("out_product_id")]
        public string OutProductId { get; set; }

        /// <summary>
        /// 产品状态。  0: 待发布  1: 已发布  2: 已过期  3: 已关闭
        /// </summary>
        [XmlElement("status")]
        public long Status { get; set; }
    }
}
